﻿/*---------------------------------------------------------------------------------
-----------------***DaLianQianYi***-----------------------
-----------------作者：大连仟亿科技------------------------------------------------------
-----------------联系作者：www.qianyikeji.com----------------------------------
-----------------时间：2017/10/24 9:19:21------------------------------------------
----------------------------------------------------------------------------------*/


using System;
using System.Collections.Generic;

namespace Donal.Xms.Model
{
    /// <summary>
    /// coupons实体
    /// </summary>
    [Serializable]
    public partial class coupons
    {
        public coupons()
        { }

        #region Model

        private int _id = 0;
        private string _title = string.Empty;
        private string _contents = string.Empty;
        private DateTime? _start_time = null;
        private DateTime? _end_time = null;
        private int _status = 0;
        private string _coupon_ids = string.Empty;        
        private decimal _conditions_amount = 0;
        private decimal _amount = 0;
        private int _superposition = 0;
        private int _sort_id = 99;
        private DateTime? _add_time = null;
        private int _expiration_form = 0;
        private int _expiration_num = 0;        
        private string _backcolor = string.Empty;
        private string _img_url = string.Empty;

        /// <summary>
        ///  图标
        /// </summary>
        public string img_url
        {
            set { _img_url = value; }
            get { return _img_url; }
        }
        /// <summary>
        ///  背景色
        /// </summary>
        public string backcolor
        {
            set { _backcolor = value; }
            get { return _backcolor; }
        }
        

        /// <summary>
        ///  优惠券ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        ///  名称
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        ///  描述
        /// </summary>
        public string contents
        {
            set { _contents = value; }
            get { return _contents; }
        }
        /// <summary>
        ///  开始日期
        /// </summary>
        public DateTime? start_time
        {
            set { _start_time = value; }
            get { return _start_time; }
        }
        /// <summary>
        ///  结束日期
        /// </summary>
        public DateTime? end_time
        {
            set { _end_time = value; }
            get { return _end_time; }
        }
        /// <summary>
        ///  状态 0正常 1禁用
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        ///  联系使用券ID，用英文逗号分开
        /// </summary>
        public string coupon_ids
        {
            set { _coupon_ids = value; }
            get { return _coupon_ids; }
        }
        
        /// <summary>
        ///  金额
        /// </summary>
        public decimal conditions_amount
        {
            set { _conditions_amount = value; }
            get { return _conditions_amount; }
        }
        /// <summary>
        ///  金额
        /// </summary>
        public decimal amount
        {
            set { _amount = value; }
            get { return _amount; }
        }
        /// <summary>
        ///  优惠形式 0不可叠加 1可叠加
        /// </summary>
        public int superposition
        {
            set { _superposition = value; }
            get { return _superposition; }
        }
        /// <summary>
        ///  排序
        /// </summary>
        public int sort_id
        {
            set { _sort_id = value; }
            get { return _sort_id; }
        }
        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime? add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        ///  失效形式 0自动过期 1指定分配之日起在指定天数后过期 2永不过期
        /// </summary>
        public int expiration_form
        {
            set { _expiration_form = value; }
            get { return _expiration_form; }
        }
        /// <summary>
        ///  指定分配之日起在指定天数后过期
        /// </summary>
        public int expiration_num
        {
            set { _expiration_num = value; }
            get { return _expiration_num; }
        }

        /// <summary>
        ///  适用品类
        /// </summary>
        public List<coupons_product_category> product_categories { get; set; } = new List<coupons_product_category>();
        #endregion
    }
}


